package com.bm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("book_tab")
public class Book {
    @TableId(value="book_id",type= IdType.AUTO)
    private Integer id;
    @TableField("book_title")
    private String title;
    @TableField("book_author")
    private String author;
    @TableField("book_publisher")
    private Integer publisher;
    @TableField("book_isbn")
    private String isbn;
    @TableField("book_price")
    private Double price;
    @TableField("book_version")
    private int version;
    @TableField("book_pubdate")
    private Date pubdate;
    @TableField("book_store")
    private int store;
    @TableField("book_imgurl")
    private String imgurl;
    @TableField("book_weight")
    private Integer weight;
    @TableField("book_type")
    private Integer type;
    @TableField("book_introduction")
    private String introduction;
    @TableField("book_sold")
    private int sold;
    @TableField("book_pages")
    private int pages;
    @TableField("book_createtime")
    private Date createTime;
    @TableField("book_updatetime")
    private Date updateTime;
    @TableField("book_createby")
    private String createBy;
}
